#ifndef TIMERMANAGER_H
#define TIMERMANAGER_H

#include "mySingleton.h"
#include "baseManager.h"
#include "baseTimer.h"


class timerID
{
public:
	static unsigned int Get()
	{
		static unsigned int id = 0;
		return ++ id;
	}
};

class timerManager :
	public Singleton<timerManager>,
	public baseManager<baseTimer>
{
protected:
	HINSTANCE m_hInstance;
public:
	int setInstance(HINSTANCE hInstance);
	HINSTANCE getInstance();
	int setTimer(HWND hwnd, unsigned int uElapse, baseTimer *pTimer);
	int onTimer(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
};
#endif